<template>
  <div class="search-history">
    <van-cell title="搜索历史">
      <span>全部删除</span>
      <span>完成</span>
      <van-icon name="delete"></van-icon>
    </van-cell>
    <van-cell :title="item" to="/home" v-for="(item,index) in DoctorList" :key="index">
      <van-icon name="close"></van-icon>
    </van-cell>

  </div>
</template>

<script>
import { getDepartmentInfo } from '@/api/user'
export default {
  name: 'SearchHistory',

  data () {
    return {
      DoctorList: ['王德发', '张麻子', '李静', '周星吃', '沙悟净']
    }
  },

  created () {
    this.getSearchDocTor()
  },

  methods: {
    async getSearchDocTor () {
      const res = await getDepartmentInfo()
      console.log(res)
    }
  }
}
</script>

<style lang="less" scoped>

</style>
